// pages/healthCode/healthCode.js
const db = wx.cloud.database()
Page({

  /**
   * 页面的初始数据
   */
  data: {
    code:"https://mis-western-restaurant.oss-cn-guangzhou.aliyuncs.com/images/2022/05/02/f3d716e1-b3f5-43e4-ae61-92153088d2ce.png"
  },
  onShow(){
    db.collection("index").get({
      success:(res)=>{
        this.setData({
          code:res.data[0].healthCode,
        })
      }
    }
    )
  },
  onShareAppMessage(){},
  onShareTimeline(){},
  onAddToFavorites(){},
  
})